package cn.myplus.blog;

import cn.myplus.blog.configure.Config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * Spring boot 启动成功后执行.
 */
@Component
public class AfterRunner implements ApplicationRunner {

    @Autowired
    private Config config;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.printf("%s",config);
    }
}
